<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.longtop.com/intelliweb" prefix="e"%>
<%@ page isELIgnored="false"%>
<html>
	<head>
		<title>选择指标-SJH</title>
	</head>
<e:View id="eView" designProperty="width: 1024; height: 768">
    <script type="text/javascript">SkinUtil.getSkin();</script>
    <script type="text/javascript">SkinUtil.getModuleSkin();</script>		
	<script type="text/javascript" src="<c:url value='/js/perform/perform.js'/>"></script>
	
	<div id="Invisual Controls" style="min-height: 40px;">
		<e:Dataset id="Dataset_indexSys" pageSize="-1">
			<e:Field name="nodeId" dataType="string" />
			<e:Field name="nodeName" dataType="string" />
			<e:Field name="parentId" dataType="string" />
		</e:Dataset> 
	</div>
	
<body style="overflow: auto">
	<e:Page id="ePage" action="com.longtop.perform.zb.system.web.SystemDropDownAction" 
		style="min-height: 80px; width: 100%; height: 100%;" onAfterLoadPage="ePage_onAfterLoadPage()" onBeforeLoadPage="ePage_onBeforeLoadPage()">
		<table style="width: 100%; height: 100%;" border="0" cellpadding="0" cellspacing="0">
		<tbody>
			<tr>
				<td>
					<e:DataTree id="indexTree"
						dataset="Dataset_indexSys" nameField="nodeId" valueField="nodeId"
						labelField="nodeName" parentField="parentId" lazyLoading="false"
						useCheckBox="true" checkedRelaNode="true"
						useDefaultFolderIcon="true" contextMenuItems="expand,collapse"
						style="width:100%; height:100%; text-align:left;" />
				</td>
			</tr>
		</tbody>
	    </table>
	</e:Page>
</body>
</e:View>

<script language="javascript">
	//init
	function ePage_onBeforeLoadPage(){
		var indexSysCode = "${param.systemId}";
		var indexSysName = Util.decode("${param.systemName}");
		//在页面加载之前先构造出树的根节点：
		Dataset_indexSys.insertRecord();
		Dataset_indexSys.setValue("nodeId",indexSysCode);
		Dataset_indexSys.setValue("nodeName",indexSysName);
		Dataset_indexSys.setValue("parentId",null);
	}
	function ePage_onAfterLoadPage(){
		var indexTree=$J("indexTree");
		indexTree.setCurrentNode();	
		indexTree.expandNode();
	}
</script>
</html>
